<?php
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.view');

JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . DS . 'tables');

class RestaurantsViewEmail extends JView
{
	function display($tpl = null)
	{
		$id = JRequest::getInt('id', 0);
		
		$review =& JTable::getInstance('review', 'Table');
		$review->load($id);
		
		$reviewlink = JRoute::_('index.php?option=com_restaurants&view=single&id=' . $id);
		
		$this->assignRef('review', $review);
		$this->assign('reviewlink', $reviewlink);
		
		parent::display($tpl);
	}
}